import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Vueaxios from 'vue-axios'
import axios from 'axios'
Vue.use(Router,axios,Vueaxios)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Hello',
      component: Hello
    },
    {path:'/home',component: resolve=>{require(['@/pages/Home'],resolve)}},
    {path:'/vue-pull-to',component: resolve=>{require(['@/pages/vuepullto/vue-pull-to'],resolve)}},
    {path:'/pull',component: resolve=>{require(['@/pages/vuepullto/pull'],resolve)}},
    {path:'/push',component: resolve=>{require(['@/pages/vuepullto/push'],resolve)}},
  ]
})
